-
-
Notifications
You must be signed in to change notification settings - Fork 5
Only use 'main' Parts of speech. Like FLEx. #2084
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. 📝 WalkthroughWalkthroughGetPartsOfSpeech() now reads parts of speech from Cache.LangProject.AllPartsOfSpeech (cast to IPartOfSpeech) instead of PartOfSpeechRepository.AllInstances(); test teardown DisposeAsync now deletes PartOfSpeech entries from both FwDataApi and CrdtApi. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20–30 minutes
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
|
Note, for some reason this change found what I consider to be a bug in our fwdata api (or maybe even LibLcm?). |
|
@coderabbitai full review |
✅ Actions performedFull review triggered. |
This excludes e.g. Reversel index parts of speech.
… Reversel index parts of speech.
5f83837 to
c552964
Compare
|
@coderabbitai full review |
✅ Actions performedFull review triggered. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR modifies the GetPartsOfSpeech() method to only return 'main' parts of speech (like FLEx does), excluding reversal index parts of speech. This change ensures consistency with how FLEx handles parts of speech.
Key changes:
- Changed the data source from
PartOfSpeechRepository.AllInstances()toCache.LangProject.AllPartsOfSpeechto filter out reversal index POS - Added a test to verify that reversal index parts of speech are excluded
- Added cleanup of parts of speech in
SyncTests.DisposeAsync()to maintain test isolation
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| FwDataMiniLcmApi.cs | Modified GetPartsOfSpeech() to use Cache.LangProject.AllPartsOfSpeech instead of PartOfSpeechRepository.AllInstances() |
| PartOfSpeechTests.cs | Added test to verify reversal index POS are not returned by GetPartsOfSpeech() |
| SyncTests.cs | Added cleanup logic in DisposeAsync() to delete parts of speech created during tests |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
jasonleenaylor
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, in other news I thought I'd reviewed this ages ago...
This excludes e.g. Reversel index parts of speech.